package com.qf.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 加载yml中的redis的配置信息
 */

@Component
@ConfigurationProperties(prefix = "redis")
@Data
public class RedisProperties {

    private String host;

    private Integer port;

    private Integer timeout;

    private String password;

    private Integer database;
}
